<?
/*
 * @since 2012.03.27
 * @author Charles Koh
 * @returns {Check E-mail}
 */
   $email = $_GET['email'];
   
   if(!$email) 
   {
      echo '{"message":"No input text for E-mail"}';
   }
   else
   {
      include "../../server/dbconn.php";
 
      $sql = "select email from member where email='$email' ";

      $result = @mysql_query($sql, $connect);
      $num_record = @mysql_num_rows($result);

      if ($num_record)
      	 echo '{"message":"This e-mail is registered."}';
      else
         echo '{"message":"You can to register your e-mail.","data":["'.$email.'"]}';

      mysql_close();
   }
?>

